.class public Lcom/estrongs/android/pop/app/GestureManageActivity;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "GestureManageActivity.java"


# instance fields
.field private j:Lcom/estrongs/android/ui/adapter/f;

.field private k:Lcom/estrongs/android/pop/l;

.field private l:Landroid/widget/TextView;

.field private m:Les/v00;

.field private n:Les/v00;

.field private o:Lcom/estrongs/android/ui/theme/b;

.field private p:Lcom/estrongs/android/pop/app/GestureManageActivity;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->o:Lcom/estrongs/android/ui/theme/b;

    .line 3
    iput-object p0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->p:Lcom/estrongs/android/pop/app/GestureManageActivity;

    return-void
.end method

.method private F()V
    .locals 4

    const v0, 0x7f0906eb

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    .line 2
    new-instance v1, Landroid/graphics/drawable/ColorDrawable;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->o:Lcom/estrongs/android/ui/theme/b;

    const v3, 0x7f0601f6

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-direct {v1, v2}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700a3

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 4
    new-instance v1, Lcom/estrongs/android/ui/adapter/f;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/adapter/f;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->j:Lcom/estrongs/android/ui/adapter/f;

    .line 5
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v1, 0x7f0903e4

    .line 6
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->l:Landroid/widget/TextView;

    .line 7
    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->k:Lcom/estrongs/android/pop/l;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->M0()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->l:Landroid/widget/TextView;

    const v2, 0x7f110492

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 10
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->l:Landroid/widget/TextView;

    const v2, 0x7f110491

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    :goto_0
    const v1, 0x7f090b1a

    .line 11
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    const/4 v2, 0x1

    .line 12
    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setFocusable(Z)V

    .line 13
    new-instance v2, Lcom/estrongs/android/pop/app/j;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/j;-><init>(Lcom/estrongs/android/pop/app/GestureManageActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 14
    invoke-virtual {v1, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->j:Lcom/estrongs/android/ui/adapter/f;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/adapter/f;->a(Z)V

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 2

    if-nez p1, :cond_0

    return-void

    .line 1
    :cond_0
    new-instance v0, Lcom/estrongs/android/ui/dialog/h0;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->p:Lcom/estrongs/android/pop/app/GestureManageActivity;

    invoke-direct {v0, v1, p1}, Lcom/estrongs/android/ui/dialog/h0;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/h0;->b()V

    .line 3
    new-instance p1, Lcom/estrongs/android/pop/app/k;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/k;-><init>(Lcom/estrongs/android/pop/app/GestureManageActivity;)V

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/h0;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/content/DialogInterface;)V
    .locals 0

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->j:Lcom/estrongs/android/ui/adapter/f;

    invoke-virtual {p1}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method public synthetic a(Landroid/widget/CompoundButton;Z)V
    .locals 1

    if-eqz p2, :cond_0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->l:Landroid/widget/TextView;

    const v0, 0x7f110492

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->l:Landroid/widget/TextView;

    const v0, 0x7f110491

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 3
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->n:Les/v00;

    invoke-virtual {p1, p2}, Les/v00;->setEnabled(Z)Les/v00;

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->m:Les/v00;

    invoke-virtual {p1, p2}, Les/v00;->setEnabled(Z)Les/v00;

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->j:Lcom/estrongs/android/ui/adapter/f;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/adapter/f;->a(Z)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->k:Lcom/estrongs/android/pop/l;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/l;->j(Z)V

    .line 7
    sput-boolean p2, Lcom/estrongs/android/ui/guesture/b;->e:Z

    .line 8
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->invalidateOptionsMenu()V

    return-void
.end method

.method public synthetic a(Lcom/estrongs/android/ui/dialog/w0;Landroid/content/DialogInterface;)V
    .locals 0

    .line 12
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/w0;->b()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/GestureManageActivity;->c(Ljava/lang/String;)V

    return-void
.end method

.method public synthetic a(Landroid/view/MenuItem;)Z
    .locals 1

    .line 9
    new-instance p1, Lcom/estrongs/android/ui/dialog/w0;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->p:Lcom/estrongs/android/pop/app/GestureManageActivity;

    invoke-direct {p1, v0}, Lcom/estrongs/android/ui/dialog/w0;-><init>(Landroid/content/Context;)V

    .line 10
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/w0;->c()V

    .line 11
    new-instance v0, Lcom/estrongs/android/pop/app/i;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/i;-><init>(Lcom/estrongs/android/pop/app/GestureManageActivity;Lcom/estrongs/android/ui/dialog/w0;)V

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/w0;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic b(Landroid/view/MenuItem;)Z
    .locals 2

    .line 1
    new-instance p1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->p:Lcom/estrongs/android/pop/app/GestureManageActivity;

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v0, "action"

    const-string v1, "set_gesture_position"

    .line 2
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v0, 0x4000000

    .line 3
    invoke-virtual {p1, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 4
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    const/4 p1, 0x0

    return p1
.end method

.method protected f(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/v00;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->k:Lcom/estrongs/android/pop/l;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->M0()Z

    move-result v0

    .line 2
    new-instance v1, Les/v00;

    const v2, 0x7f0809b5

    const v3, 0x7f110490

    invoke-direct {v1, v2, v3}, Les/v00;-><init>(II)V

    new-instance v2, Lcom/estrongs/android/pop/app/l;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/l;-><init>(Lcom/estrongs/android/pop/app/GestureManageActivity;)V

    .line 3
    invoke-virtual {v1, v2}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->n:Les/v00;

    .line 4
    invoke-virtual {v1, v0}, Les/v00;->setEnabled(Z)Les/v00;

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->n:Les/v00;

    invoke-interface {p1, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 6
    new-instance v1, Les/v00;

    const v2, 0x7f0809c1

    const v3, 0x7f110497

    invoke-direct {v1, v2, v3}, Les/v00;-><init>(II)V

    new-instance v2, Lcom/estrongs/android/pop/app/h;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/h;-><init>(Lcom/estrongs/android/pop/app/GestureManageActivity;)V

    .line 7
    invoke-virtual {v1, v2}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->m:Les/v00;

    .line 8
    invoke-virtual {v1, v0}, Les/v00;->setEnabled(Z)Les/v00;

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->m:Les/v00;

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/GestureManageActivity;->k:Lcom/estrongs/android/pop/l;

    .line 2
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0191

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    .line 4
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p1

    if-eqz p1, :cond_0

    const v0, 0x7f11049d

    .line 5
    invoke-virtual {p1, v0}, Landroidx/appcompat/app/ActionBar;->setTitle(I)V

    .line 6
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/GestureManageActivity;->F()V

    .line 7
    invoke-static {p0}, Lcom/estrongs/android/pop/utils/o;->a(Landroidx/appcompat/app/AppCompatActivity;)V

    return-void
.end method
